home *** CD-ROM | disk | FTP | other *** search
- function game_pause(p)
- {
- trace(p);
- if(p)
- {
- _parent.game_pause = true;
- _parent.stopAll.obj = _root;
- _parent.stopAll.gotoAndPlay(2);
- stopAllSounds();
- }
- else
- {
- trace("游戏继续");
- _parent.speed_listener.initSpeed();
- _parent.game_pause = false;
- _parent.stopAll.playObj(_root);
- if(_parent.bgSnd_bool)
- {
- _parent.bg_sound.start(0,1000);
- }
- if(!_parent.speedCheck)
- {
- _quality = _parent.use_quality;
- }
- else
- {
- _parent.speed_listener.initSpeed();
- }
- }
- play();
- }
- function reStart()
- {
- delete _parent.pos_array;
- _parent.clearAll();
- _parent.setPara_default();
- game_pause(false);
- stopAllSounds();
- _parent.gotoAndStop("start");
- }
- init_depth = this.getDepth();
- obj = new MovieClip();
- sobj = new MovieClip();
- checkObj = function(obj)
- {
- obj.stopChecked = true;
- for(name in obj)
- {
- if(typeof obj[name] == "movieclip" && obj[name] != this)
- {
- obj[name].frame55555 = obj[name]._currentframe;
- if(!obj[name].stopChecked)
- {
- checkObj(obj[name]);
- }
- }
- }
- };
- stopObj = function(obj)
- {
- obj.stoped55555 = true;
- for(name in obj)
- {
- if(typeof obj[name] == "movieclip" && obj[name] != this)
- {
- if(obj[name].frame55555 != obj[name]._currentframe && obj[name].frame55555 != undefined)
- {
- obj[name].stop55555 = true;
- obj[name].stop();
- if(obj[name] == _parent.center_mc && obj[name]._currentframe == 1)
- {
- delete obj[name].stop55555;
- }
- }
- if(!obj[name].stoped55555 && obj[name] != _parent.center_mc)
- {
- stopObj(obj[name]);
- }
- }
- }
- };
- playObj = function(obj)
- {
- delete obj.stoped55555;
- delete obj.stopChecked;
- for(name in obj)
- {
- if(typeof obj[name] == "movieclip" && obj[name] != this)
- {
- if(obj[name].stop55555)
- {
- obj[name].play();
- delete obj[name].stop55555;
- delete obj[name].frame55555;
- }
- if(obj[name].stoped55555 != undefined)
- {
- playObj(obj[name]);
- }
- }
- }
- };
- stop();
-